package com.example.foodsy.service;

import com.example.foodsy.dto.AddressDTO;
import com.example.foodsy.entity.RetaInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.foodsy.entity.WholInfo;

import java.util.List;
import com.example.foodsy.utils.Result;

/**
 * <p>
 * 零售商产品批号信息表 服务类
 * </p>
 *
 * @author cgc
 * @since 2025-09-23
 */
public interface RetaInfoService extends IService<RetaInfo> {

	AddressDTO<RetaInfo> getInfoByQR(String qrCode);

	boolean addRetaInfo(RetaInfo retaInfo);

	AddressDTO<WholInfo> getWholInfo(Integer wbId);



	AddressDTO<WholInfo> getRetaInfo(String wbId);

	List<RetaInfo> getRetaInfoBystate(String state, Integer companyId);
	RetaInfo getInfoByQR(String qrCode);

    Result confirmBatch(Integer rbId);
}
